import Vue from 'vue';


import App from './App.vue'
import './assets/js/rem.js'
import './assets/css/style.css'


import axios from './http';
Vue.prototype.$http = axios;

import _self from './utils'
Vue.prototype.$self = _self;

import Vuex from 'vuex'
import stores from './store'

// import XLSX from 'xlsx';
// console.log(XLSX)
// Vue.prototype.$xlsx = XLSX;


Vue.use(Vuex);
const store = new Vuex.Store({
	...stores
  });



import ElementUI from 'element-ui'
// import 'element-ui/lib/theme-chalk/index.css'
import './assets/css/index.css'
Vue.use(ElementUI)

import router from './router/index.js'


Vue.config.productionTip = false


new Vue({
	store,
	router,
	render: h => h(App),
}).$mount('#app')

// window.addEventListener("beforeunload", function (event) {
// 	// 取消默认的跳转行为
// 	event.preventDefault();
// 	// 个值来显示确认对话框Chron
// 	event.returnValue = '';
// })